
def isNum(string:str):
    try:
        return isinstance(eval(string),(int,float,complex))
    except:
        return False

if __name__=="__main__":
    for i in ['520','3.1415926','3+4j','abc','$','@','*']:
        
        print(isNum(i))
